package com.example.databasepj.entity;
import lombok.Data;

@Data
public class DishReviewEntity {

    private int dish_review_id;
    private int user_id;
    private int dish_id;
    private int order_id;
    private int rating; // 可以使用枚举代替整型
    private String comment;

    public DishReviewEntity() {
    }

    public DishReviewEntity(int user_id, int dish_id, int order_id) {
        this.user_id = user_id;
        this.dish_id = dish_id;
        this.order_id = order_id;
    }

    public DishReviewEntity(int dish_review_id, int user_id, int dish_id, int order_id, int rating, String comment) {
        this.dish_review_id = dish_review_id;
        this.user_id = user_id;
        this.dish_id = dish_id;
        this.order_id = order_id;
        this.rating = rating;
        this.comment = comment;
    }

    public DishReviewEntity(int dish_review_id, int user_id, int dish_id, int order_id, int rating) {
        this.dish_review_id = dish_review_id;
        this.user_id = user_id;
        this.dish_id = dish_id;
        this.order_id = order_id;
        this.rating = rating;
    }

    public int getDish_review_id() {
        return dish_review_id;
    }

    public void setDish_review_id(int dish_review_id) {
        this.dish_review_id = dish_review_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getDish_id() {
        return dish_id;
    }

    public void setDish_id(int dish_id) {
        this.dish_id = dish_id;
    }

    public int getOrder_id() {
        return order_id;
    }

    public void setOrder_id(int order_id) {
        this.order_id = order_id;
    }

    public int getRating() {
        return rating;
    }

    public void setRating(int rating) {
        this.rating = rating;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}

